﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NuevoGenNHibernate.CAD.Ebay;
using NuevoGenNHibernate.CEN.Ebay;
using NuevoGenNHibernate.EN.Ebay;

namespace Formularios
{
    public partial class Articulo : Form
    {
        public Articulo()
        {
            InitializeComponent();
            StartPosition = FormStartPosition.CenterScreen;

            ArticuloCAD articulo = new ArticuloCAD();
            ArticuloCEN Cen = new ArticuloCEN(articulo);

            dataGridView1.DataSource = articulo.ReadAll(0, -1);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            NuevoArticulo nuevo =new NuevoArticulo();

            nuevo.ShowDialog();


        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            NuevoArticulo nuevo = new NuevoArticulo();
            nuevo.ShowDialog();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            ArticuloCAD articulo = new ArticuloCAD();
            ArticuloCEN Cen = new ArticuloCEN(articulo);

            dataGridView1.DataSource = articulo.ReadAll(0, -1);
        }
    }
}
